package work;

public class AddAddDemo {
    public static void main(String[] args) {
        int c = 10;
        int d = 5;
        //10 +12 -4 -5 +1 +12
        //----------11 +12 -5 -5 +1 +12
        //c=11
        int rs3 = c++ + ++c - --d - ++d +1 +c--;
        System.out.println(rs3);

        c = 10;
        d=5;
        //11 +12 -5 -7 +5
        int n = ++c + ++c - d++ - ++d +5;
        System.out.println(n);
    }
}
